package com.carlinfo.stu_ques.demo.pojo;

import java.io.Serializable;
import java.util.Date;

public class HuLuWa implements Serializable
{
	private int id;
	private int idDynasty;
	private String name;
	private int age;
	private Date createTime;
	private Date updateTime;
	
	private Dynasty dynasty;
	public Dynasty getDynasty()
	{
		return dynasty;
	}
	public void setDynasty(Dynasty dynasty)
	{
		this.dynasty = dynasty;
	}
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public int getIdDynasty()
	{
		return idDynasty;
	}
	public void setIdDynasty(int idDynasty)
	{
		this.idDynasty = idDynasty;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public int getAge()
	{
		return age;
	}
	public void setAge(int age)
	{
		this.age = age;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public String toString()
	{
		String result = getId()+"\t"+ getName() + "\t"+ getAge() +"\t\t"+ getCreateTime().toLocaleString() +"\t\t\t" + getUpdateTime().toLocaleString() ;
		return result;
	}
	
}
